
namespace Catalog.Application.Interfaces;

public interface IReadService<T> where T : class
{
    Task<T?> GetByIdAsync(Guid id, CancellationToken cancellationToken = default);
    Task<IEnumerable<T>> GetListAsync(string? keyword = null, CancellationToken cancellationToken = default);
    Task<bool> ExistsAsync(Guid id);
}